package br.com.inventario.jdbc.modelos;

import java.util.Collection;
import java.util.List;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import org.hibernate.annotations.Cascade;
import org.hibernate.annotations.Fetch;
import org.hibernate.annotations.FetchMode;

@Entity
@Table(name="tbParametro")
public class Parametro {

	@Id
	@GeneratedValue
	@Column(name = "idParametro")
	private int id;
	
	@Column(name = "nomeParametro")
	private String nome;
	
	//@OneToMany(cascade=CascadeType.ALL, fetch=FetchType.EAGER)
	//@JoinColumn(name="tbParametro_idParametro")
	//private List inventarios;
	
	
	//public List<Inventario> getInventarios() {
	//	return inventarios;
//	}
//	public void setInventarios(List<Inventario> inventarios) {
//		this.inventarios = inventarios;
//	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getNome() {
		return nome;
	}
	public void setNome(String nome) {
		this.nome = nome;
	}
	
}
